package cn.cpf.aop.annotation;

import cn.cpf.aop.common.LoggerUtils;
import org.springframework.stereotype.Component;

@Component("annotationProxyObjectDemo")
public class AnnotationProxyObjectDemo implements IAopAnnotation {

    @Override
    public void testProxy1() {
        LoggerUtils.logInfo("执行 testProxy1 方法");
    }

    @Override
    public void testProxy2(){
        LoggerUtils.logInfo("执行 testProxy2 方法, 抛出异常");
        throw new RuntimeException("jajajaj");
    }

}
